<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>编辑房源_房源管理_明昊昌房源管理系统_后台管理</title>
	<link rel="stylesheet" href="/static/css/bootstrap.min.css?t=<?php echo time();?>">
	<link rel="stylesheet" href="/static/css/admin.css?t=<?php echo time();?>">
	<script src="/static/js/jquery-3.2.1.min.js"></script>
	<script src="/static/js/jquery.cityselect.js"></script>
	<script src="/static/js/jquery.validate.min.js"></script>
	<script src="/static/js/fang.js?t=<?php echo time();?>"></script>
</head>

<body>
{include file="common/topbar" /}
<div class="left">
{include file="common/menu" /}
</div>
<div class="right">
	<div class="main">
		<div class="where">
			当前位置：
			<a href="{:url('index/index')}"><span class="glyphicon glyphicon-home"></span>首页</a>
			&gt;&gt;
			房源管理
			&gt;&gt;
			编辑房源
		</div>
		<div class="form">
			<form action="{:url('fang/savefang')}" class="form-horizontal" name="fang" method="post">
			  <input type="hidden" name="id" value="{$info.id}">
			  <div class="form-group">
			    <label for="inputPassword" class="col-sm-2 control-label">房源类别</label>
			    <div class="col-sm-10">			      
					<select class="form-control" name="cateid" id="cateid">
					  <option value="">选择类别</option>
					  {$option}
					</select>
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="inputPassword" class="col-sm-2 control-label">编号</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" name="sn" id="sn" placeholder="编号" value="{$info.sn}">
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="inputPassword" class="col-sm-2 control-label">小区名称</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" name="xiaoqu" id="xiaoqu" placeholder="小区名称" value="{$info.xiaoqu}">
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="inputPassword" class="col-sm-2 control-label">地址</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" name="address" id="address" placeholder="地址" value="{$info.address}">
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="inputPassword" class="col-sm-2 control-label">楼层</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" name="louceng" id="louceng" placeholder="楼层" value="{$info.louceng}">
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="inputPassword" class="col-sm-2 control-label">面积</label>
			    <div class="col-sm-10">
					<div class="input-group">
					<input type="text" class="form-control" name="mianji" id="mianji" placeholder="面积" value="{$info.mianji}"><span class="input-group-addon">m<sup>2</sup></span>
				</div>
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="inputPassword" class="col-sm-2 control-label">售价</label>
			    <div class="col-sm-10">
					<div class="input-group">
					<input type="text" class="form-control" name="shoujia" id="shoujia" placeholder="售价" value="{$info.shoujia}"><span class="input-group-addon">万元</span>
				</div>
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="inputPassword" class="col-sm-2 control-label">联系人</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" name="contact" id="contact" placeholder="联系人" value="{$info.contact}">
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="inputPassword" class="col-sm-2 control-label">电话</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" name="tel" id="tel" placeholder="电话" value="{$info.tel}">
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="inputPassword" class="col-sm-2 control-label">备注</label>
			    <div class="col-sm-10">
			      <textarea class="form-control" name="beizhu" id="beizhu" placeholder="备注">{$info.beizhu}</textarea>
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="inputPassword" class="col-sm-2 control-label"></label>
			  	<input type="submit" class="btn btn-primary pull-right" value="确定添加">
			  </div>
			</form>
		</div>
	</div>
</div>
<div class="clear"></div>
</body>
</html>